php forum
php mysql forum
php mysql smarty
 
Topic Options
#155498 - 03/29/04 09:48 PM [6.3.x] [beta] Private Message Notification
S8ER95Z Offline
Junior Member

Registered: 03/24/04
Posts: 2
Since I couldnt find any mods that did this, and Im not familiar with CGI, I just threw this together. If anyone can improve on it, or knows a better way, please let me know!

Requires Wordlets mod and Instant Messenger Mod.


In ubb_pm.cgi

****************
Find
****************
&WriteFileAsString("$vars_config{MembersPath}/pm_info/pm_counter.cgi", "$pm_countern");

********
Add
********
#Send PM Notice
$PMI = "You have a new Private Message!";
$file[$#file + 1] = "$user_number||\n\n$PMI||||";
&WriteFileAsArray("$vars_config{MembersPath}/popup/$in{u}.cgi", @file);

********
find
********
&WriteFileAsString("$vars_config{MembersPath}/pm_info/pm_counter.cgi", "$pm_countern");

********
Add
********
#Send PM Notification

$PMI = "You have a new Private Message!";
$sendmeto = $pm_to{$thispost};

$file[$#file + 1] = "$user_number||\n\n$PMI||||";
&WriteFileAsArray("$vars_config{MembersPath}/popup/$sendmeto.cgi", @fil
***********

Thats it, the first one goes in New PM and the second entry is for Reply to PM. Any questions? I just cobbled it together really, so I dont mind if anyone fixes/does a better one. smile Thanks

Robert

Top
#155499 - 05/02/04 10:19 AM Re: [6.3.x] [beta] Private Message Notification
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Still not sure what this does. Can you explain? Eventually show me a screen shot?

Thank you

Top
#155500 - 05/02/04 10:31 AM Re: [6.3.x] [beta] Private Message Notification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Very nice idea, good job! smile
Felix, it shows you a pop-up (with Instant Message mod) when you get a new private message.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#155501 - 08/09/04 11:30 PM Re: [6.3.x] [beta] Private Message Notification
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Still dont know what it does. PM Mod already pops a windows with a "You have 'n' messages" when you receive one. It is part of the Mod!

and BTW you are missing something on the last line:
&WriteFileAsArray("$vars_config{MembersPath}/popup/$sendmeto.cgi", @fil

Top
#155502 - 08/12/04 12:10 AM Re: [6.3.x] [beta] Private Message Notification
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
I think I got it..When someone writes you a Private Message you receive a notification like this: it pops a PM window, in my case the enhanced one in which you can reply right on the spot.



and if you reply the sender gets just a Instant Message.
Nice...

LK, can it be modified to show you some info about the PM, say the date, the subject and maybe a link to the Message or at least the Inbox folder? I have the PM Folders installed.

Thank you,

Felix

Top
#155503 - 08/12/04 03:19 PM Re: [6.3.x] [beta] Private Message Notification
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
:glances at version number:
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks